package com.freesky.biz.activity.mapper;

import com.freesky.biz.activity.domain.TAlipayCouponDetail;
import com.freesky.biz.activity.domain.TCouponDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponDetailMapper {

    public List<TCouponDetail> findList(TCouponDetail entity);

    public List<TCouponDetail> selectListByBusiId(@Param("busiId") String busiId);

    public List<TCouponDetail> findAlipayList(TCouponDetail entity);
    public List<TCouponDetail> selectAlipayListByBusiId(@Param("busiId") String busiId);

    public int addCouponDetail(TCouponDetail entity);
    public int addAliCouponDetail(TAlipayCouponDetail entity);


    public int updateReportGrantCount(@Param("startDt") String startDt,
                                      @Param("endDt") String endDt);

    public int updateAlipayReportGrantCount(@Param("startDt") String startDt,
                                            @Param("endDt") String endDt);
}
